#! /bin/bash

download_dir=/tmp/python3.10.0
[ -d "${download_dir}" ] && rm -rf ${download_dir}
mkldir -p ${download_dir}
cd $download_dir

echo "downloading packages..."
wget --no-check-certificate https://cmc.cloudartifact.szv.dragon.tools.huawei.com/artifactory/opensource_general/Python/3.10.0/package/Python-3.10.0.tgz

echo "start installing python3.10.0..."
set +xu; source /etc/profile; set -u; bash /buildtools/PYTHON-3.10.0 "opt/buildtools/PYTHON-3.10.0"

echo "Docker configuration completed!"
rm -rf ${download_dir}
